﻿@model IEnumerable<OrderIT.Model.Customer>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            bianhao
        </th>
        <th>
            Username
        </th>
        <th>
            Password
        </th>
        <th>
            WSEnabled
        </th>
        <th>
            Name
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        
          <td>
            @Html.DisplayFor(modelItem => item.CompanyId)
        </td>

        <td>
            @Html.DisplayFor(modelItem => item.Username)
        </td>
        <td>                                     
            @Html.DisplayFor(modelItem => item.Password)
        </td>
        <td>
           @Html.DisplayFor(modelItem => item.WSEnabled,"Text")
           
        </td>
        <td> 
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.CompanyId }) |
            @Html.ActionLink("Details", "Details", new { id=item.CompanyId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.CompanyId })
        </td>
    </tr>
}

</table>
